import sys
import client
from PyQt5.QtWidgets import QApplication,QDialog






def main():
    a = QApplication(sys.argv)
    w = client.MainWindow()
    log = client.Login()
    if log.exec_():
        w.show()
        return a.exec_()
    else:
        print("登录退出")
        sys.exit(a.exec_())
        return
        
        
    

main()